
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<title>旅游信息管理</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link href="css/dialog.css" rel="stylesheet" type="text/css" />

</head>

<body>
<div align="center"><!--筛选部分-->

<div
	style="height: 32px; background: #F8F8F8; border-bottom: 2px solid #FF6600;">
<span
	style="float: left; font-size: 18px; font-weight: bold; padding: 5px;">新闻详情</span>
<span style="float: right; padding: 5px; margin-right: 10px;">您当前：首页
&gt;&gt;&gt; 新闻详情</span></div>

</div>
<?php //加载配置文件
include 'config.php';
$link = mysql_connect(HOST,DBUSER,DBPASS) or die('连接失败亲');
mysql_select_db(DBNAME,$link);
mysql_set_charset('utf8');

$sql = "SELECT * FROM t_news  where id='".$_GET['id']."' ORDER BY id ";
$result = mysql_query($sql);
if(!empty($result)&&mysql_num_rows($result)>0){
	while($rows = mysql_fetch_assoc($result)){
	?>
	<div align="center">
	<table width="800" >
	<tr>
	<th align="center"><?php echo $rows['title'] ?></th>
	</tr>
	<tr>
	<td align="center"><?php echo $rows['addtime'] ?></td>
	</tr>
	<tr>
	<td align="left"><?php echo $rows['content'] ?></td>
	</tr>
	</table>
	</div>
<?php
	}}

	?>

</body>
</html>
